package com.shop.pojo;

import java.math.BigDecimal;

/**
 * Purchaselist entity. @author MyEclipse Persistence Tools
 */

public class Purchaselist implements java.io.Serializable
{

	// Fields

	private String idPurchaselist;
	private Book book;
	private Purchase purchase;
	private String purchaselistno;
	private BigDecimal purchasecount;
	private BigDecimal purchaseprice;

	// Constructors

	/** default constructor */
	public Purchaselist()
	{
	}

	/** minimal constructor */
	public Purchaselist(String idPurchaselist, String purchaselistno)
	{
		this.idPurchaselist = idPurchaselist;
		this.purchaselistno = purchaselistno;
	}

	/** full constructor */
	public Purchaselist(String idPurchaselist, Book book, Purchase purchase,
			String purchaselistno, BigDecimal purchasecount,
			BigDecimal purchaseprice)
	{
		this.idPurchaselist = idPurchaselist;
		this.book = book;
		this.purchase = purchase;
		this.purchaselistno = purchaselistno;
		this.purchasecount = purchasecount;
		this.purchaseprice = purchaseprice;
	}

	// Property accessors

	public String getIdPurchaselist()
	{
		return this.idPurchaselist;
	}

	public void setIdPurchaselist(String idPurchaselist)
	{
		this.idPurchaselist = idPurchaselist;
	}

	public Book getBook()
	{
		return this.book;
	}

	public void setBook(Book book)
	{
		this.book = book;
	}

	public Purchase getPurchase()
	{
		return this.purchase;
	}

	public void setPurchase(Purchase purchase)
	{
		this.purchase = purchase;
	}

	public String getPurchaselistno()
	{
		return this.purchaselistno;
	}

	public void setPurchaselistno(String purchaselistno)
	{
		this.purchaselistno = purchaselistno;
	}

	public BigDecimal getPurchasecount()
	{
		return this.purchasecount;
	}

	public void setPurchasecount(BigDecimal purchasecount)
	{
		this.purchasecount = purchasecount;
	}

	public BigDecimal getPurchaseprice()
	{
		return this.purchaseprice;
	}

	public void setPurchaseprice(BigDecimal purchaseprice)
	{
		this.purchaseprice = purchaseprice;
	}

}